package square.data;

import pedrosm.data.Data;

/**
 * 
 * @author Pedro Silva Moreira
 */
public class MapObjectData extends Data implements Cloneable {

	public static final int SIDE_LEFT = 0, SIDE_UP = 1, SIDE_RIGHT = 2,
			SIDE_DOWN = 3;
	public static final int SIDE_LEFT_UP = 4, SIDE_RIGHT_UP = 5,
			SIDE_RIGHT_DOWN = 6, SIDE_LEFT_DOWN = 7;
	public static final int STATE_STOP = 0, STATE_WALK_START = 1,
			STATE_WALK_END = 2;

	private Object owner;
	private String description;
	private SpriteData sprite;

	// Instance
	public MapObjectData instance() {
		try {
			return (MapObjectData) this.clone();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	// Get & Set
	public Object getOwner() {
		return owner;
	}

	public void setOwner(Object owner) {
		this.owner = owner;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public SpriteData getSprite() {
		return sprite;
	}

	public void setSprite(SpriteData sprite) {
		this.sprite = sprite;
	}
}
